package com.example.customer.rest;

import com.example.common.service.HelloClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping
public class HelloRest {

    @Resource
    HelloClient helloClient;

    @GetMapping("hello")
    public String hello(){

        return helloClient.sayHello("ss");
    }
}
